package com.hc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hc.domain.Role;
import com.hc.mapper.RoleMapper;
import com.hc.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Set;

@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService{

    @Resource
    private RoleMapper roleMapper;

    @Override
    public Set<Role> getRolesByUserId(Integer id) {
        return roleMapper.selectRolesByUserId(id);
    }

}
